package pattern.facade;

public class Dinner {
	private Apple apple;
	private Banana banana;
	private Pear pear;
	public Apple getApple() {
		return apple;
	}
	public void setApple(Apple apple) {
		this.apple = apple;
	}
	public Banana getBanana() {
		return banana;
	}
	public void setBanana(Banana banana) {
		this.banana = banana;
	}
	public Pear getPear() {
		return pear;
	}
	public void setPear(Pear pear) {
		this.pear = pear;
	}
	Dinner(){
		apple = new Apple();
		banana = new Banana();
		pear = new Pear();
	}
	
	
	void eat() {
		apple.eat();
		banana.eat();
		pear.eat();
	}
	
}
